import React from "react"
import { BrowserRouter, useRoutes } from "react-router-dom"
import { router } from "./router"
import WithAuth from "./components/Hoc/withAuth"
function App() {
  const El = () => useRoutes(router)
  return (
    <BrowserRouter>
      <WithAuth>
        <El />
      </WithAuth>
    </BrowserRouter>
  )
}

export default App
